package com.aauedu.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

//@ServletComponentScan(basePackages = "com.aauedu.springboot")
@SpringBootApplication
public class MyApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext ioc
                = SpringApplication.run(MyApplication.class, args);
        /*try {
            Thread.sleep(10000);
            ioc.stop();//调用stop之后，才会执行监听器的销毁方法
        } catch (InterruptedException e) {
            e.printStackTrace();
        }*/

        System.out.println("hello");

    }
}

